home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / libc6.postrm < prev    next >
Encoding:
Text File  |  2012-06-08  |  1.5 KB  |  58 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. if [ "$1" = remove ]; then
  5.     if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
  6.     if [ -x /usr/lib/pt_chown ]; then
  7.         suidunregister -s libc6 /usr/lib/pt_chown
  8.     elif [ -x /usr/libexec/pt_chown ]; then
  9.         suidunregister -s libc6 /usr/libexec/pt_chown
  10.     fi
  11.     fi
  12. fi
  13.  
  14. if [ "$1" = upgrade ]; then
  15.     case $(dpkg --print-architecture) in
  16.     i386|sparc)
  17.         if dpkg --compare-versions "$2" lt 2.3.4-3; then
  18.         # Make sure the downgraded package does not support
  19.         # ld.so.hwcappkgs mechanism on i686 and sparc.
  20.         rm -f /etc/ld.so.hwcappkgs
  21.         echo "downgrade-to-old-glibc" >> /etc/ld.so.nohwcap
  22.  
  23.         echo
  24.         echo You are trying to downgrade to glibc 2.3.4-2 or earlier.
  25.         echo Such old packages do not support the version mismatch between
  26.         echo standard libc and hwcap libc using /etc/ld.so.hwcappkgs
  27.         echo on i386 and sparc.  To be safe from library inconsistency,
  28.         echo hwcap libraries are disabled until glibc 2.3.4-3 or later
  29.         echo is installed.
  30.         echo
  31.         fi
  32.         ;;
  33.     esac
  34. fi
  35.  
  36. if [ "$1" = deconfigure ]; then
  37.     :; # blah, do something useful with ldso
  38. fi
  39.  
  40. #if [ "$1" = purge ]; then
  41. #    update-rc.d mountkernfs remove > /dev/null
  42. #fi
  43.  
  44. # Automatically added by dh_installdebconf
  45. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  46.     . /usr/share/debconf/confmodule
  47.     db_purge
  48. fi
  49. # End automatically added section
  50. # Automatically added by dh_makeshlibs
  51. if [ "$1" = "remove" ]; then
  52.     ldconfig
  53. fi
  54. # End automatically added section
  55.  
  56.  
  57. exit 0
  58.